package blf.librarysystem.Service;

import blf.librarysystem.Dao.ReaderMapper;
import blf.librarysystem.Pojo.Reader;
import blf.librarysystem.Utils.MD5Util;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class ReaderServiceIMP implements ReaderService{

    @Resource
    private ReaderMapper readerMapper;

    @Override
    public Reader login(String name, String password) {
        return readerMapper.login(name, password);
    }

    @Override
    public Reader findReaderById(int id) {
        return readerMapper.findByPrimaryKey(id);
    }
}
